﻿using System;
using System.Runtime.InteropServices;

namespace DirectShow
{
	[ComImport, System.Security.SuppressUnmanagedCodeSecurity,
	Guid("C6E13340-30AC-11d0-A18C-00A0C9118956"),
	InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	public interface IAMStreamConfig
	{
		[PreserveSig]
		int SetFormat([In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType pmt);

		[PreserveSig]
		int GetFormat([Out] out AMMediaType pmt);

		[PreserveSig]
		int GetNumberOfCapabilities(IntPtr piCount, IntPtr piSize);

		[PreserveSig]
		int GetStreamCaps(
				[In] int iIndex,
				[In, Out] IntPtr ppmt,
				[In] IntPtr pSCC
				);
	}


}
